﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Topproduct.ascx.cs" Inherits="BookStore.Controls.Topproduct" %>
   
<div class="box  bestsellers">
  <div class="box-heading">Bestsellers</div>
  <div class="box-content">
    <div class="box-product-2">
    	<ul>
            <asp:DataList ID="dltlist" runat="server" RepeatColumns="5" 
                 RepeatDirection="Horizontal" 
                 RepeatLayout="Flow" >
            <ItemTemplate>
             <li>
                 <div class="image"><a href="<%# Eval("productID") %>"><asp:LinkButton ID="lbnimg" runat="server" 
                            CommandArgument='<%# Eval("productId") %>' onclick="lbnimg_Click"> <asp:Image ID="Image1" runat="server" ImageUrl='<%# "/image/Catalog/"+Eval("images") %>' Width="126px" Height="188px" /> </asp:LinkButton></a></div>
                  <div class="extra-wrap">
                     <div class="name maxheight-best"> 
                         <asp:LinkButton ID="lnbname" runat="server" Font-Size="8px"
                             CommandArgument='<%# Eval("productId") %>' Text='<%# Eval("productName") %>' 
                             onclick="lnbname_Click"></asp:LinkButton>
                             
                             </div>
                             
                   <div class="price">
                  <span class="price-new"><asp:Label ID="Label1" runat="server" Text='<%# Eval("price", "{0:C}") %>'></asp:Label></span><span class="price-old"></span>
                </div>                       
             </div>
          </li>       
            </ItemTemplate>
            </asp:DataList>
    </ul>
    </div>
  </div>